package test

import (
	"encoding/xml"
	"time"

	"awfan.cn/utils"
	"gopkg.in/mgo.v2/bson"
)

type TESTS_XML struct {
	XMLName xml.Name `xml:"tests" json:"-"`

	Tests []TEST_XML `xml:"test" json:"tests"`
}

type TEST_XML struct {
	Id           bson.ObjectId         `xml:"id" json:"id" bson:"_id,omitempty"`
	Member       utils.EMBED_DISPLAYID `xml:"member" json:"member" bson:"member,omitempty"`
	Content      string                `xml:"content" json:"content" bson:"content,omitempty"`
	Created_time time.Time             `xml:"created_time" json:"created_time" bson:"created_time,omitempty"`
}
